-- GENERATED SPELL FOR [Darnassian Archer] --


function spell0_18965(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18965', 585, 1)
end

function Sorts_18965(pUnit, Event)
local choix_sorts_18965 = math.random(0, 0)
if choix_sorts_18965 == 0 then
pUnit:RegisterEvent('spell0_18965', 1, 1)
end
end

function mob18965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18965', math.random(1500, 3000), 1)
end

function mob18965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18965, 1, 'mob18965_Action')
RegisterUnitEvent(18965, 2, 'mob18965_Leave')
RegisterUnitEvent(18965, 3, 'mob18965_Kill')
RegisterUnitEvent(18965, 4, 'mob18965_Die')
